/**
 * 
 */
package com.hanhai.zrb.api.biz.result;

import java.util.List;
import java.util.Map;

import org.apache.commons.collections.CollectionUtils;

import com.hanhai.common.result.BaseResult;
import com.hanhai.zrb.model.user.UserIm;

/**
 * @author ricky
 *
 */
public class UserCenterResult extends BaseResult {

	/**
	 * 
	 */
	private static final long serialVersionUID = 9164921355715504969L;
	
	private Map<String,Object> huanxinInfoMap;
	
	private UserIm userIm;
	
	

	public UserCenterResult() {}
	
	
	
	public Map<String, Object> getHuanxinInfoMap() {
		return huanxinInfoMap;
	}



	public void setHuanxinInfoMap(Map<String, Object> huanxinInfoMap) {
		this.huanxinInfoMap = huanxinInfoMap;
	}



	public UserIm getUserIm() {
		return userIm;
	}



	public void setUserIm(UserIm userIm) {
		this.userIm = userIm;
	}



	public UserCenterResult(boolean isSuccess,List<String> msgs){
		setSuccess(isSuccess);
		setMsgs(msgs);
	}
	
	public UserCenterResult(boolean isSuccess,String resultCode){
		setSuccess(isSuccess);
		setResultCode(resultCode);
	}
	
	public void clearMsg(){
		if (CollectionUtils.isNotEmpty(getMsgs())) {
			getMsgs().clear();
		}
	}
}
